<div ng-controller="SctsTaskCtrl">
    <form class="form-inline">
        <div class="form-group">
            <input type="text" class="form-control sheet-input" ng-model="query.taskName" name="taskName" placeholder="请输入蛙测的任务名称">
        </div>
        <div class="form-group">
            <input type="text" class="form-control sheet-input" ng-model="query.envName" name="envName" placeholder="请输入环境实例名称">
        </div>
        <div class="form-group">
            <div class="search-div marginL" ng-click="paginationSearch(0,pagination.pageSize)">查询</div>
            <a href="javascript:void(0)" class="text-primary" target="_blank"  ui-sref=" topHead.leftColumn.editTestTask({type:'create'})" style="margin-right: 20px;"><i class="fu fu-plus" style="color: #65B113"><span style="color: #11B983;font-size: 12px">创建任务</span></i></a>
        </div>
    </form>

    <div class="table-body">
        <table class="sn-table">
            <tr>
                <th width="5%"></th>
                <th>任务名称</th>
                <th>环境实例</th>
            </tr>
            <tr ng-repeat="taskItem in pagination.data">
                <td>
                    <input type="radio" name="inlineRadioOptions" ng-click="selectTask($event,taskItem)"
                           data="{{taskItem}}" id="{{taskItem.tasId}}" value="{{taskItem.tasId}}">
                </td>
                <td class="text_overflow_task">
                    {{taskItem.taskName}}
                </td>
                <td class="text_overflow_task">
                    {{taskItem.envName}}
                </td>
            </tr>
            <tr ng-if="!pagination.data||pagination.data.length<1">
                <td colspan="7">暂无数据</td>
            </tr>
        </table>
    </div>
         <cd-pager style="float: right" page="pagination.page" page-size="pagination.pageSize"
         total="pagination.totalCount" page-action="paginationSearch(page, pageSize, total)"></cd-pager>
    <div class="form-group">
        <button class="btn btn-default cancelbutton" ng-click="curr(0)">上一步</button>
        <button class="btn btn-primary" ng-click="save()" ng-disabled="!selectTaskList||selectTaskList.length<1">确定</button>
    </div>
</div>
<style type="text/css">
    input.form-control {
        height: 28px;
    }
    input {
        height: 26px;
        padding-left: 10px;
        padding-right: 0px;
        border: 1px solid #ddd;
        color: #333;
        width: 170px;
    }

    input.form-control {
        height: 28px;
    }
    input.sheet-input, select.sheet-select{
        width:150px !important;
        height:26px;
        padding-top:0;
        padding-bottom:0;
        color:#c9c9c9;
    }
    input.sheet-input::-webkit-input-placeholder{
        color:#c9c9c9;
    }

</style>
